using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DragonAwakening.Core.Game
{
    /// <summary>
    /// Maxed value data struct.
    /// </summary>
    public struct MaxValueData
    {
        /// <summary>
        /// Maximum value.
        /// </summary>
        public int Max;

        /// <summary>
        /// Current value.
        /// </summary>
        public int Current;

        /// <summary>
        /// Current value in % of max value [0.0, 1.0]
        /// </summary>
        public double Percentage
        {
            get { return Max != 0 ? (double) Current / (double) Max : 0; }
        }
    }
}
